#ifndef USERINTERFACE_H_
#define USERINTERFACE_H_

#include "CubePile.h"
#include "Sound.h"
#include "Cursor.h"
#include "KeyListener.h"
#include "MouseListener.h"

#include <SDL/SDL.h>

class UserInterface : public KeyListener, public MouseListener
{
	CubePile * pile;
	Cursor * cursor;
	
	bool grabMode;
	
	void grab();
	void drop();
	
public:

	UserInterface(Sound * aSound, Cursor * aCursor, Cube * aCube);
	virtual ~UserInterface();
	void render();
	void animate(float timeD);
	
	void virtual handleEvent(bool keys[321]);
	void virtual handleEvent(SDL_Event * event);
};

#endif /*USERINTERFACE_H_*/
